Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool-module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool-module
Merge requests
!492
ci: add test-vanilla-release & test-fork-release CI stages
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ci: add test-vanilla-release & test-fork-release CI stages
gmoshkin/test-release-builds-in-ci
into
master
Overview
4
Commits
6
Pipelines
11
Changes
4
Merged
Georgy Moshkin
requested to merge
gmoshkin/test-release-builds-in-ci
into
master
11 months ago
Overview
4
Commits
6
Pipelines
11
Changes
4
Expand
Summary
ci: add test-vanilla-release & test-fork-release CI stages + fix tests which were failing
add ability to do
#[tarantool::test(should_panic = cfg!(debug_assertions))]
Ensure that
New code is covered by tests
API is documented
Changelog is up to date
Version is bumped in the appropriate
Cargo.toml
files
Edited
11 months ago
by
Georgy Moshkin
0
0
Merge request reports
Viewing commit
08fa53e7
Prev
Next
Show latest version
4 files
+
20
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
08fa53e7
feat: #[tarantool::test(should_panic = cfg!(debug_assertions))]
· 08fa53e7
Georgy Moshkin
authored
11 months ago
tarantool/src/lib.rs
+
10
−
0
Options
@@ -377,6 +377,16 @@ pub use linkme;
/// }
/// ```
///
/// You can also have tests which should panic only in certain conditions.
/// This is done by specifying a constant expression as an argument to the
/// `should_panic` keyword. Here's an example:
/// ```no_run
/// #[tarantool::test(should_panic = cfg!(debug_assertions))]
/// fn only_panics_in_debug_mode() {
/// debug_assert!(false);
/// }
/// ```
///
/// You can also use `#[tarantool::test]` with `async` functions, in which case
/// the body of the test will be wrapped inside `fiber::block_on(async {})`
/// block. The following two tests are equivalent:
Loading