Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple integration test & infrastructure #24

Merged
merged 3 commits into from
Apr 20, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.rs]
indent_style = space
indent_size = 4

[*.toml]
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ rust:
- beta
script: |
cargo build --verbose &&
cargo test --verbose
cargo test --verbose --all
matrix: # additional tests
include:
- rust: nightly
script: |
cargo test --features nightly
cargo test --all --features nightly
- rust: nightly-2018-04-15
env: CLIPPY_VERS="0.0.194"
before_script: |
[[ "$(cargo +nightly-2018-04-15 clippy --version)" != "$CLIPPY_VERS" ]] && \
cargo +nightly-2018-04-15 install clippy --vers "$CLIPPY_VERS" --force || true
script: |
cargo +nightly-2018-04-15 clippy -- -D warnings
cargo +nightly-2018-04-15 clippy --all -- -D warnings
- rust: 1.25.0 # `stable`: Locking down for consistent behavior
env: RUSTFMT=yes_please
install:
- rustup component add rustfmt-preview
script:
- cargo fmt -- --write-mode=diff
- cargo fmt --all -- --write-mode=diff
cache: cargo
203 changes: 203 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ backtrace = "0.3"

[features]
nightly = []

[workspace]
members = [
"tests/simple",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of "simple" having a clearer specifier might be useful. Having "simple" as a category isn't very clear on what should be inside of it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's meant as a first step that tests simple, obvious things :D What would you call it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps naming it "tests/single_panic" or something might be clearer as to what it's testing.

]
10 changes: 10 additions & 0 deletions tests/simple/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "simple-human-panic-test"
version = "0.1.0"
authors = ["Human Panic Authors <[email protected]>"]

[dependencies]
human-panic = { path = "../.." }

[dev-dependencies]
assert_cli = "0.5.4"
File renamed without changes.
Loading