-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for cargo test Signed-off-by: Luca Della Vedova <[email protected]> * Switch to minidom Signed-off-by: Luca Della Vedova <[email protected]> * Remove standalone parameter Signed-off-by: Luca Della Vedova <[email protected]> * Add cargo args parameter Signed-off-by: Luca Della Vedova <[email protected]> * Remove color from test output Signed-off-by: Luca Della Vedova <[email protected]> * Remove unnecessary assertion Signed-off-by: Luca Della Vedova <[email protected]> * Change build verb to also build tests Signed-off-by: Luca Della Vedova <[email protected]> * Fix cargo args passing Signed-off-by: Luca Della Vedova <[email protected]> * Change target dir to install base for tests Signed-off-by: Luca Della Vedova <[email protected]> * Split build and install folders / steps Signed-off-by: Luca Della Vedova <[email protected]> * Add None check Signed-off-by: Luca Della Vedova <[email protected]> * Change back to build base Signed-off-by: Luca Della Vedova <[email protected]> * Add lockfile to cargo install Signed-off-by: Luca Della Vedova <[email protected]> * Simplify cargo paths Signed-off-by: Luca Della Vedova <[email protected]> * Reduce number of built targets Signed-off-by: Luca Della Vedova <[email protected]> * Remove outdated comment Signed-off-by: Luca Della Vedova <[email protected]> * Remove doctests Signed-off-by: Luca Della Vedova <[email protected]> * Add documentation Signed-off-by: Luca Della Vedova <[email protected]> * Consistency for test error handling Signed-off-by: Luca Della Vedova <[email protected]> * Fix README Signed-off-by: Luca Della Vedova <[email protected]> * Revert "Consistency for test error handling" This reverts commit dc8d9c9. Signed-off-by: Luca Della Vedova <[email protected]> * Remove NO_COLOR argument Signed-off-by: Luca Della Vedova <[email protected]> * Remove TODO Signed-off-by: Luca Della Vedova <[email protected]> --------- Signed-off-by: Luca Della Vedova <[email protected]>
- Loading branch information
1 parent
9fdb14f
commit 48cd670
Showing
7 changed files
with
207 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// Failing doctest example | ||
/// ``` | ||
/// invalid_syntax | ||
/// ``` | ||
pub struct Type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
fn main() { | ||
println!("Hello, world!"); | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
|
||
#[test] | ||
fn ok() -> Result<(), ()> { | ||
Ok(()) | ||
} | ||
|
||
#[test] | ||
fn err() -> Result<(), ()> { | ||
Err(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters