Stefan Nikolei
34f44a6994
Fix xunit.v3 test failures post-migration
2 months ago
Stefan Nikolei
67a94113e4
Migrate tests from xUnit v2 to xUnit.v3 3.2.2
Breaking changes addressed:
- Update xunit.v3 to 3.2.2 and xunit.runner.visualstudio to 3.1.5
- Remove Microsoft.DotNet.XUnitExtensions (conflicts with xunit.v3 via xunit.core v2)
- Replace ConditionalFact/ConditionalTheory with Fact/Theory SkipUnless/SkipWhen/SkipType
- Remove 'using Xunit.Abstractions' (ITestOutputHelper now in Xunit namespace globally)
- Fix TestFrameworkAttribute: string args → typeof(T) form
- Fix XunitTestFramework ctor: no longer takes IMessageSink
- Fix BeforeAfterTestAttribute Before/After: added IXunitTest parameter, use Xunit.v3 ns
- Fix DataAttribute: new GetData signature (DisposalTracker), add SupportsDiscoveryEnumeration()
- Fix IXunitSerializable/IXunitSerializationInfo: add 'using Xunit.Sdk' to all consumers
- Fix BasicSerializer: implement new IXunitSerializationInfo.GetValue(string) returning object?
Store type info in dump format (key:TypeAQN:value) to enable typed reconstruction
- Fix TheoryData<T> CS0121 ambiguity on C# 12/net8.0: add explicit casts (T)value
Affects ExifValuesTests, PixelOperationsTests, QuantizerTests, DitherTests,
TestImageProviderTests, RotateTests, L8Tests, La16Tests
- Fix PngEncoderTests: TheoryData<T> now yields TheoryDataRow<T>, not object[]
2 months ago
Anton Firszov
25b3567482
Benchmark parallelization ( #3111 )
* add parallel processing benchmarks
* introduce RunExperiment and fix warnings in test code
* fix benchmarks
* proper ProcessorThroughputTest
* test additional processors
* ProcessorThroughputTest -> ProcessorThroughputBenchmark
* add DrawImage to ParallelProcessing benchmark
* readonly
* Disable BMP tests -- https://github.com/SixLabors/ImageSharp/issues/3112
* revert ImageMagick update
* delete CountingUnit
* rename field
3 months ago
Stefan Nikolei
5de26525fe
Convert CodeBase to collection Expressions
1 year ago
Stefan Nikolei
18b8b662e9
Use Target Type new only when apparent
1 year ago
Stefan Nikolei
57f5966fe7
use Explicit Types and Target Type new
1 year ago
James Jackson-South
5528a2923c
Update missed test and benchmarks project
4 years ago
Dmitry Pentin
4ab4ae2352
Tests, fixed interleaved decoding I messed up during main merge
4 years ago
Dmitry Pentin
a9c7f4bb3c
Merge fixes
4 years ago
James Jackson-South
97baeaf438
Update all files
4 years ago
Dmitry Pentin
fe5e3be586
Fixed warnings, code cleanup
4 years ago
Dmitry Pentin
b943f80ca9
Restored Program.cs
4 years ago
Dmitry Pentin
12776f003c
IDCT resizing modes
4 years ago
Dmitry Pentin
282e593057
Update playground
4 years ago
Dmitry Pentin
36180c6705
playground
4 years ago
Dmitry Pentin
717b166e41
Removed unnecessary small allocation from color post processing, removed test benchmark call from sandbox project
5 years ago
Anton Firszov
2b6d940d6f
update LoadResizeSaveParallelMemoryStress
5 years ago
James Jackson-South
4a09fd9bba
Fix final StyleCop warnings in tests
5 years ago
Brian Popow
3d36c5f776
Change test images path from WebP to Webp
5 years ago
Dmitry Pentin
24bf7c111d
Restored sandbox
5 years ago
Dmitry Pentin
17ca003bab
Fixed sandbox
5 years ago
Dmitry Pentin
4d5886680f
Fixed sandbox
5 years ago
Dmitry Pentin
839da83f17
Update sandbox
5 years ago
Dmitry Pentin
f9b36e794d
Sandbox code & results
5 years ago
Dmitry Pentin
93044e4de0
Sandbox code & results
5 years ago
Anton Firszov
32ae7cff83
API chunks
5 years ago
Anton Firszov
1a41aaa10b
LoadResizeSaveParallelMemoryStress help text
5 years ago
Anton Firszov
7c1a1afc61
UniformUnmanagedMemoryPoolMemoryAllocator
5 years ago
Dmitry Pentin
84900dcd29
Restored memory stress test to the sandbox
5 years ago
Dmitry Pentin
27d7c3a769
Rolled back to initial sandbox code
5 years ago
Dmitry Pentin
460b02c776
Sandbox changes
5 years ago
Dmitry Pentin
c86d02901c
Fixed sandbox code
5 years ago
Dmitry Pentin
5ba8763ade
Replaced hardcoded values with actual calculated ones in postprocessor
5 years ago
Dmitry Pentin
925b3ad138
Added debug code to the sandbox
5 years ago
Anton Firszov
2e91fc8363
add a README
5 years ago
Anton Firszov
f37b46e567
initial import of beeees stress code
5 years ago
Anton Firszov
1968d3724f
better JpegEncoder profiling/benchmarks
6 years ago
James Jackson-South
6a3411ed6b
Add new property and implement for TPixel types
6 years ago
James Jackson-South
874115bd0a
Update license
6 years ago
James Jackson-South
6183dd8c13
Update source license info.
6 years ago
Anton Firszov
fa5a435132
tweak profiling benchmarks
6 years ago
Anton Firszov
aa576e8532
cleanup ProfilingSandbox
7 years ago
Anton Firszov
c4bd8812ff
rename Sandbox46 to ImageSharp.Tests.ProfilingSandbox
7 years ago
Simon Cropp
2c04d6b036
redundant usings ( #960 )
7 years ago
Brian Popow
d9925234a4
Add support for read and write tEXt, iTXt and zTXt chunks ( #951 )
* Add support for writing tEXt chunks
* Add support for reading zTXt chunks
* Add check, if keyword is valid
* Add support for reading iTXt chunks
* Add support for writing iTXt chunks
* Remove Test Decode_TextEncodingSetToUnicode_TextIsReadWithCorrectEncoding: Assertion is wrong, the correct keyword name is "Software"
* Add support for writing zTXt chunk
* Add an encoder Option to enable compression when the string is larger than a given threshold
* Moved uncompressing text into separate method
* Remove textEncoding option from png decoder options: the encoding is determined by the specification: https://www.w3.org/TR/PNG/#11zTXt
* Removed invalid compressed zTXt chunk from test image
* Revert accidentally committed changes to Sandbox Program.cs
* Review adjustments
* Using 1024 bytes as a limit when to compress text as recommended by the spec
* Fix inconsistent line endings
* Trim leading and trailing whitespace on png keywords
* Move some metadata related tests into GifMetaDataTests.cs
* Add test case for gif with large text
* Gif text metadata is now a list of strings
* Encoder writes each comment as a separate block
* Adjustment of the Tests to the recent changes
* Move comments to GifMetadata
* Move Png TextData to format PngMetaData
7 years ago
Anton Firszov
0a6a085e91
memory profiling with Sandbox46
7 years ago
Anton Firszov
903601ecbf
move ResizeProfilingBenchmarks, use the ***ProfilingBenchmarks naming convention everywhere
8 years ago
Anton Firszov
c5a4ed85ff
Even better Copy2x2. Tests: Group together & refactor profiling benchmarks
8 years ago
Anton Firszov
7ac90a88b8
fix Sandbox46 build
8 years ago
James Jackson-South
df32de1d2a
Fix sandbox tests
8 years ago