Richard Jedlička Posted December 9, 2016 Share Posted December 9, 2016 Tense 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. 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. 17 Link to comment Share on other sites More sharing options...
LostKobrakai Posted December 10, 2016 Share Posted December 10, 2016 That sounds like a pretty nice tool. Will surely try it out later today. For naming I'd suggest focusing on the "setup test environment" as it doesn't really test by itself (which is nice). Link to comment Share on other sites More sharing options...
marcus Posted December 10, 2016 Share Posted December 10, 2016 Regarding name: what about "Nest"/"Nesting" (as in: building the nest like birds do to raise their offsprings ) Link to comment Share on other sites More sharing options...
netcarver Posted December 10, 2016 Share Posted December 10, 2016 @Richard Jedlička A single like is not enough! This is a long-overdue and needed tool - thanks for contributing it. Personally, I think WireTest is a fine name for this. 3 Link to comment Share on other sites More sharing options...
Richard Jedlička Posted April 19, 2017 Author Share Posted April 19, 2017 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 4 Link to comment Share on other sites More sharing options...
Richard Jedlička Posted April 19, 2017 Author Share Posted April 19, 2017 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 Link to comment Share on other sites More sharing options...
Richard Jedlička Posted April 24, 2017 Author Share Posted April 24, 2017 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. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now