- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Method
- Uses xUnit (http://xunit.codeplex.com/) to test C# code.
- Class
- Parses the test results from xUnit.
- Method
- Returns null for this implementation as xUnit does not support code coverage directly. Override this method in another class to provide code coverage information (also see @{class:CSharpToolsUnitEngine}).
- Method
- Run the xUnit test runner on each of the assemblies and parse the resulting XML.
- Method
- Build the future for running a unit test. This can be overridden to enable support for code coverage via another tool.
- Method
- Build the projects relevant for the specified test assemblies and return the results of the builds as test results. This build also passes the "SkipTestsOnBuild" parameter when building the projects, so that MSBuild conditionals can be used to prevent any tests running as part of the build itself (since the unit tester is about to run each of the tests individually).
- Method
- If the `Build` directory exists, we assume that this is a multi-platform project that requires generation of C# project files. Because we want to test that the generation and subsequent build is whole, we need to regenerate any projects in case the developer has added files through an IDE and then forgotten to add them to the respective `.definitions` file. By regenerating the projects we ensure that any missing definition entries will cause the build to fail.
- Method
- Determine whether or not a current set of results contains any failures. This is needed since we build the assemblies as part of the unit tests, but we can't run any of the unit tests if the build fails.
- Method
- Builds and runs the specified test assemblies.
- Method
- Applies the discovery rules to the set of paths specified.
- Method
- Overridden version of `loadEnvironment` to support a different set of configuration values and to pull in the cstools config for code coverage.
- Method
- This test engine supports running all tests.
- Method
- Very basic 'py.test' unit test engine wrapper.
- Class
- Method
- Method
- Method
- Very basic unit test engine which runs libphutil tests.
- Class
- Returns the paths in which we should look for tests to execute.
- Method
- Retrieve all relevant test cases.
- Method
- Method
- Method
- TODO: This is copied from @{class:ArcanistConfigurationDrivenLintEngine}.
- Method
- Method
- Method
- Method
- Method
- Uses cscover (http://github.com/hach-que/cstools) to report code coverage.
- Class
- Reads the code coverage results from the cscover results file.
- Method
- Processes a set of XML tags as code coverage results. We parse the `instrumented` and `executed` tags with this method so that we can access the data multiple times without a performance hit.
- Method
- Stores the code coverage results in the cache.
- Method
- Retrieves the cached results for a coverage result file. The coverage result file is XML and can be large depending on what has been instrumented so we cache it in case it's requested again.
- Method
- Returns coverage results for the unit tests.
- Method
- Overridden version of `buildTestFuture` so that the unit test can be run via `cscover`, which instruments assemblies and reports on code coverage.
- Method
- Returns whether the specified assembly should be instrumented for code coverage reporting. Checks the excluded file list and the matching regex if they are configured.
- Method
- Determines what executables and lint paths to use. Between platforms this also changes whether the lint engine is run under .NET or Mono. It also ensures that all of the required binaries are available for the lint to run successfully.
- Method
- Tests for @{class:PhpunitTestEngine}.
- Class
- Method
- Very meta test for @{class:PhutilUnitTestEngine}.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Test for @{class:PhutilUnitTestEngineTestCase}.
- Class
- Method
- Method
- Thrown to prematurely end test execution.
- Class
- Thrown to skip test execution.
- Class
- Method
- Method
- Fail an assertion which checks that some result is equal to a specific value, like 'true' or 'false'. This prints a readable error message and fails the current test.
- Method
- Returns info about the caller function.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Mark the current running test as skipped.
- Method
- This was a triumph. I'm making a note here: HUGE SUCCESS.
- Method
- Mark the currently-running test as a failure.
- Method
- This hook is invoked once, after all test cases execute.
- Method
- This hook is invoked once, before any test cases execute. It gives you an opportunity to perform setup steps for the entire suite of test cases.
- Method
- This hook is invoked once per test, after the test method is invoked.
- Method
- This hook is invoked once per test, before the test method is invoked.
- Method
- This hook is invoked once, after any tests in this class are run. It gives you an opportunity to perform teardown steps for the entire class.
- Method
- This hook is invoked once, before any tests in this class are run. It gives you an opportunity to perform setup steps for the entire class.
- Method
- Convenience wrapper around @{method:tryTestCases} for cases where your inputs are scalar. For example:
- Method
- Straightforward method for writing unit tests which check if some block of code throws an exception. For example, this allows you to test the exception behavior of ##is_a_fruit()## on various inputs:
- Method
- This simplest way to assert exceptions are thrown.
- Method
- End this test by asserting that the test should be skipped for some reason.
- Method
- Assert an unconditional failure. This is just a convenience method that better indicates intent than using dummy values with assertEqual(). This causes test failure.
- Method
- Assert that two values are equal, strictly. The test fails if they are not.
- Method
- Assert that a value is `true`, strictly. The test fails if it is not.
- Method
- Assert that a value is `false`, strictly. The test fails if it is not.
- Method