Skip to content

Releases: gleb-sevruk/pycrunch-engine

Skipped tests will no longer show as fails

05 Mar 12:31
53afbf7
Compare
Choose a tag to compare

See #12 for details

@skip
def test_should_be_skipped(self):
    print('this should show as success in pycrunch report. This test will also not run.')

0.9.0 Support variable tracing inside the engine

27 Jan 22:01
Compare
Choose a tag to compare

For details please see:
#10

using sample code

from pycrunch.insights import trace

trace(variable_a=1, variable_b=dict(...))

It is now possible to output data into new PyCrunch Timeline window for simpler debbuging

0.7.2 Small issue fixed

31 Oct 21:39
48995f8
Compare
Choose a tag to compare

Previously exception was raised when a file is deleted from project folder.

This was caused due to my switch to asyncio, and usually not happening during usage scenarios with adding\modification.

Now the issue is fixed.

0.7.1 parametrize test will fail if even one fails

30 Sep 10:07
cd2c7af
Compare
Choose a tag to compare

Small fix to address false positive during failure in one of parametrized test

See #4 for details

0.7.0 - Use multiple processes for faster test execution

27 Sep 15:13
9bb1414
Compare
Choose a tag to compare

following configuration parameters added into .pycrunch-config.yaml:

  • cpu-cores - How many processes to use for test execution. (More processes != faster times)
  • multiprocessing-threshold default is 5 - Try to not pipeline 5 or less tests into multiple processes. Use single executor instead. 6 or more tests will be split intelligently across your cpu-cores
engine:
  runtime: pytest
  # maximum number of concurrent test runners
  cpu-cores: 4
  # minimum number of tests to schedule per core (5 by default; if set to 1 - run each test in own process)
  multiprocessing-threshold: 4

Some statistics (Intel i7 7700k 4-cores with multithreading enabled):

Total tests to run: 67

1 CPU
run tests - Duration - 7.775 seconds

2 CPU
run tests - Duration - 5.628 seconds

3 CPU
run tests - Duration - 3.709 seconds

4 CPU
run tests - Duration - 3.405 seconds
run tests - Duration - 3.37 seconds

5 CPU
run tests - Duration - 3.415 seconds

8 CPU
# no improvement at that point...
run tests - Duration - 3.451 seconds 

50 CPU
run tests - Duration - 10.258 seconds

0.6 Get rid of flask

20 Sep 15:50
Compare
Choose a tag to compare
  • Rewritten communication protocols to use WebSockets only.

  • Get fid of flask dependency

  • Now engine will use aiohttp server instead of flask. (if you use aiohttp in your project, maybe it can conflict somehow, but this is no longer flask)

  • Included web-ui into the pip bundle

  • Web Ui will show more detailed timings statistics

  • Improves Dark Theme in Pycharm

Minor fix during test watch/discovery

18 Sep 19:07
Compare
Choose a tag to compare

Adding test file previously didn't add this file to watch queue, therefore all new tests in that file were not visible until engine restart. This is fixed.

Beta 1

11 Sep 18:36
Compare
Choose a tag to compare
v_05

Merge remote-tracking branch 'origin/master'