Jump to content

Tense - Easy testing against multiple versions of ProcessWire CMF


Recommended Posts

Tense Packagist   

Tense (Test ENvironment Setup & Execution) is a command-line tool to easily run tests agains multiple versions of ProcessWire CMF.

Are you building a module, or a template and you need to make sure it works in all supported ProcessWire versions? Then Tense is exactly what you need. Write the tests in any testing framework, tell Tense which ProcessWire versions you are interested in and it will do the rest for you.

asciicast.gif

See example or see usage in a real project.

Quote

Motivation

I'd like to improve the situation of automated testing in ProcessWire ecosystem. Because I was looking for a solution to test my module against multiple versions of ProcessWire and I thought someone had already a solution for this, but I didn't find any. On the contrary I've found out that almost nobody tests at all.

How to use?

1. Install it: 

composer global require uiii/tense

2. Create tense.yml config:

tense init

3. Run it:

tense run

 

For detailed instructions see Github page: https://github.com/uiii/tense

 

This is made possible thanks to the great wireshell tool by @justb3a, @marcus and others.

 

What do you think about it? Do you find it useful? Do you have some idea? Did you find some bug? Tell me you opinion. Write it here or in the issue tracker.

  • Like 17
Link to comment
Share on other sites

Hi, version 1.0.0 is released. The main changes are:

  • project's name is changed to Tense (Test ENvironment Setup & Execution)
  • Symfony/Console is used for colored output and arguments parsing
  • config file uses YAML instead of JSON
  • tense init command can be used for config file initialization
  • waitAfterTests option renamed to pause
  • Like 4
Link to comment
Share on other sites

On 19. 4. 2017 at 5:11 PM, Richard Jedlička said:

I'd would like to implement the before_script option, but there are some things I'm not sure about. Your help is appreciated, see the issue: https://github.com/uiii/tense/issues/13#issuecomment-295303576

It's done. I've considered the options and with @LostKobrakai's advice added beforeCmd config option allowing to run specified command after PW installation but before test suite execution. See more https://github.com/uiii/tense#beforecmd. Currently on master branch only.

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...