Unreadable compiler output
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Mở impl/compiler_log_formatter.ipp quanh dòng 155 và kiểm tra cách định dạng checkpoint trong mối quan hệ với phần đầu ra kiểm thử xung quanh. Thực hiện điều chỉnh định dạng được yêu cầu, sau đó chạy các bài kiểm thử đầu ra trình biên dịch Boost.Test liên quan hoặc tái hiện lỗi được hiển thị để xác minh rằng mỗi checkpoint cuối cùng vẫn nằm cùng với đầu ra của test suite tương ứng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hey!
There is quite unreadable output of test errors. I mean that line where talked about "last checkpoint" sticks together with output of next test suite:
Running 5 test cases...
unknown location(0): fatal error: in "DbAccess_AccountMappingTests/DatabaseMapping_Account": Wt::Dbo::backend::PostgresException: ERROR: new row for relation "accounts" violates check constraint "is_retail_for_only_client_account"
DETAIL: Failing row contains (19, 0, 2022-12-30 15:25:50.432222, nccName321, 0, 1000000.00000000, 1, 1111, ALFA, 0, 1, null, null, 1, t, 0, t, 0.1, null, f, , , null, f, f, 0, 1000000.00000000, f, f, , , , 1000000.00000000, 0, f, 1, null, f, , f, f, 2, 0, 0, 1, f, f, f, , t, 6636, 0, t, PrincipalFirmId, PrincipalTradeClearingAccountId, PrincipalFirmId, ClientTrustedCode, null, 1000000.00000000, 0, f, t, t, , 0.00000000, 0, f, f).
/home/dmitry-trebushnikov/main/Sources/Trading/src/TradingTestUtils.cpp(847): last checkpoint
Dbo.Session: Session exiting with 1 dirty objects
unknown location(0): fatal error: in "DbAccess_AccountMappingTests/DatabaseMapping_AccountWithCurrencies_FromDbCache": Wt::Dbo::backend::PostgresException: ERROR: duplicate key value violates unique constraint "accounts_name_and_owner_firm_id_key"
DETAIL: Key (name, owner_firm_id)=(name222, 1) already exists.
/home/dmitry-trebushnikov/main/Sources/Trading/src/DbAccess/DatabaseTestFixture.cpp(187): last checkpoint
I think it is much more consistent to stick it with its test suite output and separate from next:
Running 5 test cases...
unknown location(0): fatal error: in "DbAccess_AccountMappingTests/DatabaseMapping_Account": Wt::Dbo::backend::PostgresException: ERROR: new row for relation "accounts" violates check constraint "is_retail_for_only_client_account"
DETAIL: Failing row contains (19, 0, 2022-12-30 15:28:29.370916, nccName321, 0, 1000000.00000000, 1, 1111, ALFA, 0, 1, null, null, 1, t, 0, t, 0.1, null, f, , , null, f, f, 0, 1000000.00000000, f, f, , , , 1000000.00000000, 0, f, 1, null, f, , f, f, 2, 0, 0, 1, f, f, f, , t, 6636, 0, t, PrincipalFirmId, PrincipalTradeClearingAccountId, PrincipalFirmId, ClientTrustedCode, null, 1000000.00000000, 0, f, t, t, , 0.00000000, 0, f, f).
/home/dmitry-trebushnikov/main/Sources/Trading/src/TradingTestUtils.cpp(847): last checkpoint
Dbo.Session: Session exiting with 1 dirty objects
unknown location(0): fatal error: in "DbAccess_AccountMappingTests/DatabaseMapping_AccountWithCurrencies_FromDbCache": Wt::Dbo::backend::PostgresException: ERROR: duplicate key value violates unique constraint "accounts_name_and_owner_firm_id_key"
DETAIL: Key (name, owner_firm_id)=(name222, 1) already exists.
/home/dmitry-trebushnikov/main/Sources/Trading/src/DbAccess/DatabaseTestFixture.cpp(187): last checkpoint
All you have to do is change impl/compiler_log_formatter.ipp (line 155):
if( !checkpoint_data.m_file_name.is_empty() ) {
// output << '\n'; // it was so
print_prefix( output, checkpoint_data.m_file_name, checkpoint_data.m_line_num );
BOOST_TEST_SCOPE_SETCOLOR( m_color_output, output, term_attr::BRIGHT, term_color::CYAN );
output << "last checkpoint";
if( !checkpoint_data.m_message.empty() )
output << ": " << checkpoint_data.m_message;
output << '\n'; // now it is
}
Have a good day:)
- Ngôn ngữ chính
- C++
- Star
- 213
- Fork
- 149
- Merge trung bình
- 18 giờ 17 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của boostorg/test
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Documentation: outdated links Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
-
Conversion Warning with GCC15 when using operator<< within custom failure message and -WConversion Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Tất cả issue của boostorg/test
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google/libultrahdr#485 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
godotengine/godot#123776 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ros2/common_interfaces#344 ·