Running some ATSes¶
These diagram show the working of code dated Nov 2018. They are made to find out how to gate/puts
can use the Config (also see: Put/gate & pathways.core.config.Config). And to document
the working.
Running pw¶
One can run one-or-more ATSfiles with one-or-more ATStests with pw. This ultimately run
run_with_fixtures(); which is shown below.
See also
Source
pathways.__main__.pw()pathways.runners.run.run_ATS()pathways.runners.run.discover()
Autorun¶
Alternatively, most ATS(files) can also be autorun –using trailer as shown. Although the
sequence is a bit different, it will result in running
run_with_fixtures().
if __name__ == "__main__":
exit(pathways.autorun())
See also
Source
pathways.runners.run.autorun()pathways.runners.run.run_ATS()
Running with Fixtures¶
When running an ATS(test), it @Setup, @Check and @Teardown fixtures are run before and
after the ATS. And each Fixture can have this set of fixtures itself. The generalised in
annex, and fixtures.
Notes¶
The call to
pathways.runners.run._load_gate()returns a Gate (pathways.puts.put.Putinstance), with is not used yet!Probably, the
Putclass should be renamed toGate.pathways.core.annex.GenericFixture.run_with_fixtures()andpathways.core.annex.ATS_Infix.run_with_fixtures()are similar, but not the same. The later is a wrapper around the ATS and will runself._ats. The generic supports multi-phases (setup, check, teardown) and callsrun_phase()