mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 03:46:23 +08:00
Remove obsolete testing docs
This commit is contained in:
parent
9819c2bafb
commit
fd51ebe78f
@ -1,9 +0,0 @@
|
||||
# Native Code Testing Guide
|
||||
|
||||
"Native" tests are tests which validate the native C/C++ function calls into the system library. To run ONLY the native tests, it is assumed that you have completed the process in the README.md, and have run `source monad-docker.sh`.
|
||||
|
||||
From the scripts directory, run `monad-run make -j native-tests`. This will output an xml file to your scripts directory.
|
||||
|
||||
# Creating new tests
|
||||
|
||||
monad-linux/src/monad-native/src/tests is the test folder containing all the .cpp files. you will need to `#include <gtest/gtest.h>` and follow gtest guidelines for creating your test suite.
|
@ -1,34 +0,0 @@
|
||||
# PowerShell for Linux
|
||||
|
||||
This readme is targeted at PowerShell for Linux users looking to write test suites to ensure quality of PowerShell products.
|
||||
|
||||
## Getting started
|
||||
|
||||
These instructions assume Ubuntu 14.04 LTS. It is assumed that PowerShell for Linux is currently installed on the system.
|
||||
|
||||
### Obtain PowerShell
|
||||
|
||||
PowerShell is required to enable and run the test suites.
|
||||
|
||||
### Testing technology
|
||||
|
||||
Technology | Purpose
|
||||
-------|------
|
||||
Pester | default cmdlet test framework
|
||||
xUnit | default C# test framework
|
||||
cppUnit | default C/C++ testing framework
|
||||
|
||||
### Running the test suite
|
||||
|
||||
Tests can be run from the `scripts` folder. If you are currently in `monad-linux/scripts`, then run `./build.sh make test` to run the complete tests suite. The table below shows the commands to run for the various test products bundled with Powershell for Linux (the table assumes the current working directory is `monad-linux/scripts`).
|
||||
|
||||
It is strongly recommended that before major changes are tested, that users run `./build.sh make clean cleanall prepare` to ensure the environment is completely clean.
|
||||
|
||||
Technology | Run Method
|
||||
------|---------
|
||||
Pester | ./build.sh make pester-tests
|
||||
xUnit | ./build.sh make xunit-tests
|
||||
cppunit | ./build.sh make native-tests
|
||||
hashbang tests | ./build.sh make hashbang-tests
|
||||
|
||||
within the `scripts` directory, you may also wish to run Pester tests on a single file. This can be done easily using `./build.sh make {path/from/scripts/to/pester/test}` (E.g, `./build.sh make ../src/pester-test/Test-TESTFILE.Test.ps1`).
|
@ -1 +0,0 @@
|
||||
#xUnit Testing Guide
|
Loading…
Reference in New Issue
Block a user